package com.cx.purchase.util;

import lombok.Data;

import java.util.List;

@Data
public class AllrecordsVo<T> {
	private Integer pageIndex;//��ǰҳ
	private Integer pageSize;//ÿҳ��С
	private Integer totalNumber;//������
	private Integer totalPage;//��ҳ��

	private List<T> dataList;
	private List<T> materialList;
	private Integer totalSize;
	
	//������ҳ��
	public void resettotalNum(Integer totalSize) {

		if (totalSize!=0){
			this.totalNumber = totalSize;
			this.totalPage = totalSize / this.pageSize;
			//������ڳ����������ݼ�һҳ
			if(totalSize % this.pageSize != 0L) {
				++this.totalPage;
			}
		}
	}


}
